package com.css.zfzx.fxpg.modules.casulaty.estimate.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.casulaty.estimate.repository.entity.FxCasulatyEstimateEntity;
import com.css.zfzx.fxpg.modules.casulaty.estimate.viewobjects.FxCasulatyEstimateQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 伤亡估算
 *
 * @author leon
 * @date 2020-11-13
 */

public interface FxCasulatyEstimateService {

    JSONObject queryFxCasulatyEstimates(FxCasulatyEstimateQueryParams queryParams, int curPage, int pageSize);

    List<FxCasulatyEstimateEntity> listFxCasulatyEstimates(FxCasulatyEstimateQueryParams queryParams);

    FxCasulatyEstimateEntity getFxCasulatyEstimate(String id);

    FxCasulatyEstimateEntity saveFxCasulatyEstimate(FxCasulatyEstimateEntity fxCasulatyEstimate);

    FxCasulatyEstimateEntity updateFxCasulatyEstimate(FxCasulatyEstimateEntity fxCasulatyEstimate);

    void deleteFxCasulatyEstimates(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    String exportExcel(FxCasulatyEstimateQueryParams queryParams, HttpServletResponse response);

    String exportManageExcel(FxCasulatyEstimateQueryParams queryParams, HttpServletResponse response);

    String importExcel(MultipartFile file);

    String calculate(FxCasulatyEstimateQueryParams queryParams);

    void initialize();


}
